package com.aishua.fire.jpa.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.aishua.fire.common.anno.EntityDesc;

import lombok.Data;

/**
 * 流量卡
 * @author Administrator
 *
 */
@EntityDesc(desc="部门表")
@Data
@Entity
public class Department {

	@Id
	@Column(nullable = true,columnDefinition="bigint COMMENT '部门表主键，自动生成'")
	private long departId;
	
	@Column(nullable = false,columnDefinition="varchar(32) COMMENT '部门名称'")
	private String departmentName;
	
	/**
	 * 部门描述
	 */
	@Column(nullable = false,columnDefinition="varchar(128) COMMENT '部门描述'")
	private String departmentDesc;
	
	@Column(nullable = false,columnDefinition="DATETIME COMMENT '记录添加时间'")
	private Date createDate;
	
	@Column(nullable = true,columnDefinition="bigint COMMENT '父节点主键，自动生成'")
	private String parentId;
	
}
